﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPageSemMenu.master" AutoEventWireup="true" CodeFile="CadastroCandidato.aspx.cs" Inherits="_CadastroCandidato" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.maskedinput-1.1.4.pack.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#ctl00_ContentPlaceHolder1_txtCPF").mask("999.999.999-99");
        $("#ctl00_ContentPlaceHolder1_txtDataNascimento").mask("99/99/9999");
        $("#ctl00_ContentPlaceHolder1_txtFone").mask("(99) 9999-9999");
        $("#ctl00_ContentPlaceHolder1_txtFone2").mask("(99) 9999-9999");
    });

</script>

    <style type="text/css">
    #tabela, #tabela2, #tabela3 
    {
       font: 18px tahoma, arial;
    }
    .dados
    {
        width: 145px;
        }
    .descricao 
    {
        width: 345px;
    }
    select
    {
        font: 16px tahoma, arial;
        padding: 5px;
    }
    .nome 
    {
        text-align:right;
        font: bold 30px Tahoma, Arial;
        color: #006C91;
    }
    span
    {
        font-size: 12px;
    }
    img 
    {
        border: none;
    }

    input[type=text], input[type=password]
    {
        padding: 5px;
    }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table style="width:494px; margin-top:10px;" cellpadding="0" cellspacing="4" id="tabela">
<tr>
    <td colspan="2" class="nome">Primeiro Acesso</td>
</tr>
<tr>
    <td class="dados" colspan="2">&nbsp;</td>
</tr>
<tr>
    <td class="dados">CPF:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtCPF" runat="server" MaxLength="14" Width="100px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Data nascimento:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtDataNascimento" runat="server" MaxLength="10" Width="80px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Email:</td>
    <td class="descricao">
        <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Width="300px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="style1">Telefone 1:</td>
    <td align="left" class="style2">
        <asp:TextBox ID="txtFone" runat="server" MaxLength="14" Width="140px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Telefone 2:</td>
    <td class="descricao">
        <asp:TextBox ID="txtFone2" runat="server" MaxLength="14" Width="140px"></asp:TextBox>
    </td>
</tr>

<tr>
    <td class="dados">Senha:</td>
    <td class="descricao">
        <asp:TextBox ID="txtSenha" runat="server" MaxLength="8" TextMode="Password" 
            Width="80px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="style1">Confirma:</td>
    <td class="style2">
        <asp:TextBox ID="txtConfirma" runat="server" MaxLength="8" TextMode="Password" 
            Width="80px"></asp:TextBox>
    </td>
</tr>
        <tr><td colspan="2" style="height:10px;">
            <asp:RequiredFieldValidator ID="RV1" runat="server" 
                ErrorMessage="Informe o CPF" ControlToValidate="txtCPF" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV2" runat="server" 
                ErrorMessage="Informe a Data de Nascimento" ControlToValidate="txtDataNascimento" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV13" runat="server" 
                ErrorMessage="Informe o telefone para contato" ControlToValidate="txtFone" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV12" runat="server" 
                ErrorMessage="Informe a Senha" ControlToValidate="txtSenha" Display="None"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="REV1" runat="server" 
                ControlToValidate="txtEmail" Display="None" ErrorMessage="Email inválido" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            <asp:CompareValidator ID="CV2" runat="server" 
                ControlToValidate="txtDataNascimento" Display="None" 
                ErrorMessage="Data de nascimento inválida" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
            <asp:CompareValidator ID="CV1" runat="server" ControlToCompare="txtSenha" 
                ControlToValidate="txtConfirma" Display="None" 
                ErrorMessage="A senha confirmada é diferente da fornecida"></asp:CompareValidator>
            <asp:ValidationSummary ID="VS1" runat="server" ShowMessageBox="True" 
                ShowSummary="False" />
            </td></tr>
        </table>
        <div style="text-align:right">
            <asp:ImageButton ID="btnCadastro" runat="server" 
                ImageUrl="../figuras/bEnviar.gif" 
                onclick="btnCadastro_Click" />
&nbsp;</div>
</asp:Content>

